home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Register for Idle < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Register for Idle
  2. Sent:        3/26/96 8:31 AM
  3. Received:    3/26/96 3:31 PM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >When our part is initialized, we register for idle events with the
  9. >RegisterIdle call. When we terminate our part, we get the assert debug
  10. >message fIdleCount == 0.  Trying to eliminate this debug message, we called
  11. >the UnRegisterIdle method in our part's destructor.  Now we get the debug
  12. >message fIdleCount >=1 followed by fIdleCount == 0.  What is the
  13. >significant of these assert messages and what is the proper way to handle
  14. >unregistering for idle events?
  15. >
  16. >Karl Jepsen
  17. >
  18.  
  19. It looks like your part is like ODFClock. ODFClock only calls 
  20. RegisterIdle in the Initialize method. You should not have to call 
  21. UnregisterIdle. It looks like you are registering something else for idle 
  22. or registering something multiple time. Check ODFClock.
  23.  
  24. .......................................................................
  25.  Henri Lamiraux                                      lamiraux@apple.com
  26.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  27. .......................................................................
  28.  
  29.  
  30.